import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
    //机构信息
    {
      path: '/messageAdd',
      name: 'messageAdd',
      component: () => import('../views/Message/MessageAdd.vue'),
    },
    {
      path: '/messageShow',
      name: 'messageShow',
      component: () => import('../views/Message/MessageShow.vue'),
    },
    {
      path: '/messageUpdate',
      name: 'messageUpdate',
      component: () => import('../views/Message/MessageUpdate.vue'),
    },
    //登录
    {
      path: '/loginDeng',
      name: 'loginDeng',
      component: () => import('../views/Login/LoginDeng.vue'),
    },
    {
      path: '/loginShow',
      name: 'loginShow',
      component: () => import('../views/Login/LoginShow.vue'),
    },
  ],
})

export default router
